<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
       'css' => [
            'assets/wx/css/order.css',
        ]
    ]);
?>

<body class="order" ng-controller="wx-order-comment-controller">
<section class="aui-content-padded">
    <div class="aui-card-list">
        <div class="aui-card-list-header aui-border-b" ng-bind="distribution.expressName || '物流评分'"></div>
        <div class="gu-comment-score-exp aui-card-list-content aui-card-list-content-padded">
            <h6 class="aui-text-center">为物流打分</h6>
            <div class="gu-comment-express">
                <i class="aui-iconfont aui-icon-star"
                   ng-click="setExpressStar(l)"
                   ng-class="{'gu-star-active': expressStar >= l}"
                   ng-repeat="l in expressStarArr"></i>
            </div>
        </div>
    </div>

    <div class="aui-card-list" ng-repeat="(index, g) in goodsComments">
        <div class="aui-card-list-header comments aui-card-list-user aui-border-b">
            <div class="aui-card-list-user-avatar">
                <img ng-src="{{ g.thumb }}" class="aui-img-round" />
            </div>
            <div class="aui-card-list-user-name">
                <div ng-bind="g.goodsName"></div>
            </div>
        </div>
        <div class="gu-comment-score-exp aui-card-list-content-padded">
            <h6 class="aui-text-center">为商品打分</h6>
            <div class="gu-comment-express">
                <i class="aui-iconfont aui-icon-star"
                   ng-click="setGoodsStar(index, l)"
                   ng-class="{'gu-star-active': g.star >= l}"
                   ng-repeat="l in expressStarArr"></i>
            </div>
            <div class="gu-comment-text-area">
                <textarea name="com1" id="" ng-model="g.message" placeholder="商品评论"></textarea>
                <p class="help-block">不少于 5 个字</p>
            </div>
        </div>
    </div>
</section>

<footer class="aui-bar aui-bar-tab gu-comfirm-footer" id="footer">
    <div class="aui-bar-tab-item aui-active gu-comfirm-footer-left">
        <a href="/order" class="aui-text-default aui-bar-tab-label aui-font-size-16">返回列表</a>
    </div>
    <div class="aui-bar-tab-item gu-comfirm-footer-right" ng-class="{'active': isSubmitting}">
        <div class="aui-bar-tab-label aui-font-size-16" ng-click="commit()">立即提交</div>
    </div>
</footer>

<?php
    $this->load->view('wx/public/footer.html', [
        'time' => time(),
        'js' => [
            'assets/wx/js/order/comment.js'
        ]
    ]);
?>
